package com.els.pages.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

/**
 * @title: IndexController
 * @projectName fake-baidu
 * @Date: 2021/6/28 16:11
 * @Author: lei.yu-esint
 * @Description:
 */
@Controller
public class IndexController {

    /**
     * 首页
     * @param model
     * @return
     */
    @GetMapping("/index")
    public String index(Model model){
        return "index";
    }

    /**
     * 搜索结果
     * @param model
     * @return
     */
    @GetMapping("/list")
    public String list(Model model){
        return "list";
    }

}
